<!--script/test/AnotherPage.html-->
<pe:mcml>
<script type="text/npl" ><![CDATA[
local page = Page;
]]></script>

<script type="text/npl">
if (not System.options.IsWebBrowser and not ParaIO.DoesFileExist("autoupdater.mem.dll")) then
	NPL.AsyncDownload("http://haqi.61.com/webplayer/RedistParaEngineClient1002.exe", "temp/RedistParaEngineClient1002.exe", "MyCompany.Aries.PatchTryWebRedist1002()", "queue_WebRedist");
end
function MyCompany.Aries.PatchTryWebRedist1002()
	if (msg.DownloadState=="complete") then
        local cmdLine = ""; -- For Spring, add special command line here
        ParaGlobal.ShellExecute("open", ParaIO.GetCurDirectory(0).."temp\\RedistParaEngineClient1002.exe", cmdLine, "", 1); 
		paraworld.PostLog({action="TryWebRedist1002",reason="finished"}, "redist size is "..tostring(msg.totalFileSize), function(msg) end);
        Page:SetValue("progress", "100%完成")
    elseif(msg.currentFileSize)then
        Page:SetValue("progress", format("%d/%d",msg.currentFileSize, msg.totalFileSize))
	end
end
</script>
<pe:if condition='<%=not System.options.IsWebBrowser%>'>
恭喜！你被选为哈奇小镇网页版的测试用户<br/>
<div style="margin:5px;color:#008000">体验网页版前，需要先关闭当前的游戏客户端<br />
更新中: <pe:label name="progress" style="height:20px;">请稍候...</pe:label>
</div>
<a href="http://haqi.61.com/webplayer/haqi_guide.html" target="_blank">点击这里开始体验!</a>
</pe:if>
<pe:if condition='<%=System.options.IsWebBrowser%>'>
谢谢体验哈奇小镇网页版，如果你有任何问题或建议, 
请提交到<a href="http://service.61.com/" target="_blank">我们的网站</a>
</pe:if>

</pe:mcml>
